﻿using System;
using System.Collections.Generic;
using System.Text;
using Store.Model.Models;
using System.Linq;
using Store.ViewModel;

namespace Store.Dal
{
    public class OnePageDAL
    {
        private StoreContext db;
        public OnePageDAL(StoreContext _db)
        {
            db = _db;
        }
        public List<Order> GetOrders()
        {
            var query = from o in db.Orders
                        select o;
            return query.ToList();
        }
    }
}
